{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 资产管理
    <span class="c-gray en">&gt;</span> 转账记录
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="/money/tansfer" title="清空刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    <!--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;margin-right: 10px"  href="/money/tansfer" title="清空" >清空</a>-->
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            下单时间：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="start" class="input-text Wdate" style="width:120px;" autocomplete="off">
             -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="end" class="input-text Wdate" style="width:120px;" autocomplete="off">
            成交时间
            <input type="text" onfocus="WdatePicker()" value="{:input('get.t_start')}" name="t_start" id="t_start" class="input-text Wdate" style="width:120px;" autocomplete="off">
            -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.t_end')}" name="t_end" id="t_end" class="input-text Wdate" style="width:120px;" autocomplete="off">
            完成时间
            <input type="text" onfocus="WdatePicker()" value="{:input('get.f_start')}" name="f_start" id="f_start" class="input-text Wdate" style="width:120px;" autocomplete="off">
            -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.f_end')}" name="f_end" id="f_end" class="input-text Wdate" style="width:120px;" autocomplete="off">

        </div>
        <div class="text-c" style="margin-top: 10px">
            <input type="text" class="input-text" style="width:200px" placeholder="用户id|账号|手机号|订单号" value="{:input('uid')}" name="uid">
            <span class="select-box" style="width: 120px">
                <select name="status" class="select">
                    <option value="">订单状态</option>
                    <option value="1" {if isset($_GET['status']) && $_GET['status'] == '1'}selected{/if}>交易中</option>
                    <option value="2" {if isset($_GET['status']) && $_GET['status'] == '2'}selected{/if}>已成交</option>
                    <option value="3" {if isset($_GET['status']) && $_GET['status'] == '3'}selected{/if}>已完成</option>
                    <option value="4" {if isset($_GET['status']) && $_GET['status'] == '4'}selected{/if}>撤单中</option>
                    <option value="5" {if isset($_GET['status']) && $_GET['status'] == '5'}selected{/if}>已撤单</option>
                </select>
            </span>
            <span class="select-box" style="width: 120px">
                <select name="type" class="select">
                    <option value="">订单类型</option>
                    <option value="0" {if isset($_GET['type']) && $_GET['type'] == '0'}selected{/if}>做空</option>
                    <option value="1" {if isset($_GET['type']) && $_GET['type'] == '1'}selected{/if}>做多</option>
                </select>
            </span>
            <span class="select-box" style="width: 120px">
                 <select name="transfer_type" class="select">
                    <option value="">系统挂单</option>
                    <option value="1" {if isset($_GET['transfer_type']) && $_GET['transfer_type'] == '1'}selected{/if}>限价成交</option>
                     <option value="2" {if isset($_GET['transfer_type']) && $_GET['transfer_type'] == '2'}selected{/if}>市价成交</option>
                </select>
            </span>
            <span class="select-box" style="width: 120px">
                <select name="action_type" class="select">
                    <option value="">用户挂单</option>
                    <option value="1" {if isset($_GET['action_type']) && $_GET['action_type'] == '1'}selected{/if}>限价挂单</option>
                    <option value="2" {if isset($_GET['action_type']) && $_GET['action_type'] == '2'}selected{/if}>市价挂单</option>
                </select>
            </span>
            <span class="select-box" style="width: 120px">
                <select name="win" class="select">
                    <option value="">是否盈利</option>
                    <option value="0" {if isset($_GET['win']) && $_GET['win'] == '0'}selected{/if}>待发放</option>
                    <option value="1" {if isset($_GET['win']) && $_GET['win'] == '1'}selected{/if}>止赢</option>
                    <option value="2" {if isset($_GET['win']) && $_GET['win'] == '2'}selected{/if}>止亏</option>
                </select>
            </span>
            <button type="submit" class="btn btn-success">搜索</button>

        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="10">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="30">ID</th>
                <th width="100">用户</th>
                <th width="80">订单号</th>
                <th width="100">价格</th>
                <th width="40">终止价格</th>
                <th width="80">买入时间</th>
                <th width="80">成交时间</th>
                <th width="80">完成时间</th>
                <th width="70">挂单类型</th>
                <th width="30">类型</th>
                <th width="50">手续费</th>
                <th width="30">用户收益</th>
                <th width="30">状态</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>{$v.uid}-{$v.username}-{$v.mobile}</td>
                <td>{$v.sn}</td>
                <td>买入：{$v.price} - 成交价：{$v.trans_price}</td>
                <td>{$v.min_price} - {$v.max_price}</td>
                <td>{:date('Y-m-d H:i:s',$v['create_time'])}</td>
                <td>{if $v.trans_time >0}
                    {:date('Y-m-d H:i:s',$v['trans_time'])}
                    {else/}
                    --
                    {/if}</td>
                <td>{if $v.stop_time >0}
                    {:date('Y-m-d H:i:s',$v['stop_time'])}
                    {else/}
                    --
                    {/if}</td>
                <td>{switch name=$v.action_type}
                    {case value="1"}限价挂单{/case}
                    {case value="2"}市价挂单{/case}
                    {default /}无效状态
                    {/switch}：
                {switch name=$v.transfer_type}
                {case value="1"}限价成交{/case}
                {case value="2"}市价成交{/case}
                {default /}无状态
                {/switch}</td>
                <td>{switch name=$v.type}
                    {case value="1"}做多{/case}
                    {case value="0"}做空{/case}
                    {default /}无效状态
                    {/switch}</td>
                <td>{$v.fee}</td>
                <td>{switch name=$v.win}
                    {case value="1"}止赢：{/case}
                    {case value="2"}止亏：{/case}
                    {default /} 待发放：
                    {/switch}{$v.money}</td>
            <td>{switch name=$v.status}
                {case value="1"}交易中{/case}
                {case value="2"}已成交{/case}
                {case value="3"}已完成{/case}
                {case value="4"}撤单中{/case}
                {case value="5"}已撤销{/case}
                {case value="6"}部分成交{/case}
                {case value="7"}订单丢失{/case}
                {default /}：
                {/switch}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}